package action.excel;

import com.alibaba.fastjson.JSONObject;

import java.util.List;

/**
 * @program: study-java8
 * @description:
 * @author: Sun Feng
 * @create: 2020-06-14 19:14
 **/
public class Demo02 {
    public static void main(String[] args) {
        String json="[{\"id\":\"314\",\"gunId\":\"1\",\"shiftTimeNotesId\":\"177\",\"startPumpCode\":739092.63,\"endPumpCode\":741058.02,\"price\":5.19,\"amount\":10200.3741,\"totalPumpCode\":1965.39,\"totalQuantity\":1965.39,\"canReturnPrice\":0,\"canReturnQuantity\":0,\"canReturnAmount\":0,\"selfUseOilPrice\":0,\"selfUseOilQuantity\":0,\"selfUseOilAmount\":0,\"writeOfAccidentsPrice\":0,\"writeOfAccidentsQuantity\":0,\"writeOfAccidentsAmount\":0,\"version\":\"1\",\"creator\":null,\"createDate\":null,\"lastModifiedDate\":null},{\"id\":\"315\",\"gunId\":\"2\",\"shiftTimeNotesId\":\"177\",\"startPumpCode\":141357.17,\"endPumpCode\":141775.04,\"price\":5.54,\"amount\":2314.9998,\"totalPumpCode\":417.87,\"totalQuantity\":417.87,\"canReturnPrice\":0,\"canReturnQuantity\":0,\"canReturnAmount\":0,\"selfUseOilPrice\":0,\"selfUseOilQuantity\":0,\"selfUseOilAmount\":0,\"writeOfAccidentsPrice\":0,\"writeOfAccidentsQuantity\":0,\"writeOfAccidentsAmount\":0,\"version\":\"1\",\"creator\":null,\"createDate\":null,\"lastModifiedDate\":null},{\"id\":\"316\",\"gunId\":\"3\",\"shiftTimeNotesId\":\"177\",\"startPumpCode\":209951.11,\"endPumpCode\":210445.19,\"price\":5.07,\"amount\":2504.9856,\"totalPumpCode\":494.08,\"totalQuantity\":494.08,\"canReturnPrice\":0,\"canReturnQuantity\":0,\"canReturnAmount\":0,\"selfUseOilPrice\":0,\"selfUseOilQuantity\":0,\"selfUseOilAmount\":0,\"writeOfAccidentsPrice\":0,\"writeOfAccidentsQuantity\":0,\"writeOfAccidentsAmount\":0,\"version\":\"1\",\"creator\":null,\"createDate\":null,\"lastModifiedDate\":null},{\"id\":\"317\",\"gunId\":\"4\",\"shiftTimeNotesId\":\"177\",\"startPumpCode\":168545.58,\"endPumpCode\":168911.66,\"price\":5.07,\"amount\":1856.0256,\"totalPumpCode\":366.08,\"totalQuantity\":366.08,\"canReturnPrice\":0,\"canReturnQuantity\":0,\"canReturnAmount\":0,\"selfUseOilPrice\":0,\"selfUseOilQuantity\":0,\"selfUseOilAmount\":0,\"writeOfAccidentsPrice\":0,\"writeOfAccidentsQuantity\":0,\"writeOfAccidentsAmount\":0,\"version\":\"1\",\"creator\":null,\"createDate\":null,\"lastModifiedDate\":null},{\"id\":\"318\",\"gunId\":\"5\",\"shiftTimeNotesId\":\"177\",\"startPumpCode\":550573.35,\"endPumpCode\":551910.18,\"price\":5.19,\"amount\":6938.1477,\"totalPumpCode\":1336.83,\"totalQuantity\":1336.83,\"canReturnPrice\":0,\"canReturnQuantity\":0,\"canReturnAmount\":0,\"selfUseOilPrice\":0,\"selfUseOilQuantity\":0,\"selfUseOilAmount\":0,\"writeOfAccidentsPrice\":0,\"writeOfAccidentsQuantity\":0,\"writeOfAccidentsAmount\":0,\"version\":\"1\",\"creator\":null,\"createDate\":null,\"lastModifiedDate\":null},{\"id\":\"319\",\"gunId\":\"6\",\"shiftTimeNotesId\":\"177\",\"startPumpCode\":457350.56,\"endPumpCode\":458660.16,\"price\":5.19,\"amount\":6796.8240,\"totalPumpCode\":1309.60,\"totalQuantity\":1309.60,\"canReturnPrice\":0,\"canReturnQuantity\":0,\"canReturnAmount\":0,\"selfUseOilPrice\":0,\"selfUseOilQuantity\":0,\"selfUseOilAmount\":0,\"writeOfAccidentsPrice\":0,\"writeOfAccidentsQuantity\":0,\"writeOfAccidentsAmount\":0,\"version\":\"1\",\"creator\":null,\"createDate\":null,\"lastModifiedDate\":null},{\"id\":\"320\",\"gunId\":\"7\",\"shiftTimeNotesId\":\"177\",\"startPumpCode\":176877.99,\"endPumpCode\":177490.44,\"price\":5.54,\"amount\":3392.9730,\"totalPumpCode\":612.45,\"totalQuantity\":612.45,\"canReturnPrice\":0,\"canReturnQuantity\":0,\"canReturnAmount\":0,\"selfUseOilPrice\":0,\"selfUseOilQuantity\":0,\"selfUseOilAmount\":0,\"writeOfAccidentsPrice\":0,\"writeOfAccidentsQuantity\":0,\"writeOfAccidentsAmount\":0,\"version\":\"1\",\"creator\":null,\"createDate\":null,\"lastModifiedDate\":null},{\"id\":\"321\",\"gunId\":\"8\",\"shiftTimeNotesId\":\"177\",\"startPumpCode\":321216.12,\"endPumpCode\":321776.06,\"price\":5.19,\"amount\":2906.0886,\"totalPumpCode\":559.94,\"totalQuantity\":559.94,\"canReturnPrice\":0,\"canReturnQuantity\":0,\"canReturnAmount\":0,\"selfUseOilPrice\":0,\"selfUseOilQuantity\":0,\"selfUseOilAmount\":0,\"writeOfAccidentsPrice\":0,\"writeOfAccidentsQuantity\":0,\"writeOfAccidentsAmount\":0,\"version\":\"1\",\"creator\":null,\"createDate\":null,\"lastModifiedDate\":null}]";

        List<ReportPumpCodeDto> dtos = JSONObject.parseArray(json, ReportPumpCodeDto.class);
        System.out.println(dtos);
    }
}
